package com.ruoyi.net.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 性能管理-性能开关对象 performance_switch
 *
 * @author tony
 * @date 2024-12-20
 */
public class PerformanceSwitch extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 网元id */
    @Excel(name = "网元id")
    @ApiModelProperty(value = "网元id")
    private String elementId;

    /** 端口id */
    @Excel(name = "端口id")
    @ApiModelProperty(value = "端口id")
    private String portId;

    /** 业务类型 */
    @Excel(name = "业务类型")
    @ApiModelProperty(value = "业务类型")
    private String busiType;

    /** 定位信息 */
    @Excel(name = "定位信息")
    @ApiModelProperty(value = "定位信息")
    private String location;

    /** 性能代码 */
    @Excel(name = "性能代码")
    @ApiModelProperty(value = "性能代码")
    private String code;

    /** 条目状态（0未激活 1已激活） */
    @Excel(name = "条目状态", readConverterExp = "0=未激活,1=已激活")
    @ApiModelProperty(value = "条目状态")
    private String status;

    /** 删除标记（0正常 2删除） */
    private String delFlag;

    /** 是否开启 0 否 1是 */
    @Excel(name = "是否开启 0 否 1是")
    @ApiModelProperty(value = "是否开启 0 否 1是")
    private String isEnable;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setElementId(String elementId)
    {
        this.elementId = elementId;
    }

    public String getElementId()
    {
        return elementId;
    }
    public void setPortId(String portId)
    {
        this.portId = portId;
    }

    public String getPortId()
    {
        return portId;
    }
    public void setBusiType(String busiType)
    {
        this.busiType = busiType;
    }

    public String getBusiType()
    {
        return busiType;
    }
    public void setLocation(String location)
    {
        this.location = location;
    }

    public String getLocation()
    {
        return location;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setIsEnable(String isEnable)
    {
        this.isEnable = isEnable;
    }

    public String getIsEnable()
    {
        return isEnable;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("elementId", getElementId())
                .append("portId", getPortId())
                .append("busiType", getBusiType())
                .append("location", getLocation())
                .append("code", getCode())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("isEnable", getIsEnable())
                .toString();
    }
}
